<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台管理系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            background-color: #f5f5f5;
        }
        .container {
            display: flex;
            min-height: 100vh;
        }
        .sidebar {
            width: 220px;
            background-color: #2c3e50;
            color: #fff;
            padding: 20px 0;
        }
        .main-content {
            flex: 1;
            padding: 20px;
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px 20px;
            border-bottom: 1px solid #ddd;
        }
        .logo {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 30px;
            text-align: center;
        }
        .nav-item {
            padding: 12px 20px;
            cursor: pointer;
            transition: background 0.3s;
        }
        .nav-item:hover {
            background-color: #34495e;
        }
        .nav-item.active {
            background-color: #3498db;
        }
        .welcome {
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .user-info {
            display: flex;
            align-items: center;
        }
        .user-info img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="sidebar">
            <div class="logo">管理系统</div>
            <div class="nav-item active">首页</div>
            <div class="nav-item">用户管理</div>
            <div class="nav-item">内容管理</div>
            <div class="nav-item">系统设置</div>
            <div class="nav-item">数据统计</div>
        </div>
        <div class="main-content">
            <div class="header">
                <h2>控制面板</h2>
                <div class="user-info">
                    <img src="https://via.placeholder.com/40" alt="用户头像">
                    <span>欢迎，管理员</span>
                </div>
            </div>
            <div class="welcome" style="margin-top: 20px;">
                <h3>欢迎登录管理系统</h3>
                <p style="margin-top: 10px;">登录时间：<span id="login-time"></span></p>
                <p style="margin-top: 10px;">今日是您第 <span style="color: #3498db; font-weight: bold;">1</span> 次登录系统</p>
            </div>
        </div>
    </div>

    <script>
        // 显示当前时间
        document.getElementById('login-time').textContent = new Date().toLocaleString();
    </script>
</body>
</html>
